package com.spring.boot.vo;

import lombok.Data;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @description: 查询分页入参
 * @author Daniel SYH
 */
@Data
public class QueryRequest implements Serializable {

    private static final long serialVersionUID = -4869594085374385813L;


    private int pageSize = 10;

    private int pageNum = 1;


    private String sortField;

    @Pattern(regexp = "descend|ascend",message = "参数输入错误")
    private String sortOrder;
}
